package com.xiguthings.waka.dao.extmapper;

import java.lang.reflect.Field;

import com.xiguthings.waka.po.GrowthExample;

public class GrowthExmpleExt extends GrowthExample {
	protected int startRow;
	protected int rows;
	public GrowthExmpleExt() {
		super();
	}
	
	/**
	 * 根据对原始的GrowthExample，创建GrowthExmpleExt
	 * @param example
	 * @throws Exception
	 */
	public GrowthExmpleExt(GrowthExample example) throws Exception{
		Class<?> clazz = example.getClass();
		Field[] fields = clazz.getDeclaredFields();
		for (Field field : fields) {
			field.setAccessible(true);
			field.set(this, field.get(example));
		}
	}

	public int getStartRow() {
		return startRow;
	}
	public void setStartRow(int startRow) {
		this.startRow = startRow;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	
}
